package ClasesInterfaces;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.border.EmptyBorder;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JButton;
import javax.swing.LayoutStyle.ComponentPlacement;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

import javax.swing.JLabel;

import java.awt.Font;

import javax.swing.SwingConstants;

public class InterfazMenuPrincipal extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					InterfazMenuPrincipal frame = new InterfazMenuPrincipal();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public InterfazMenuPrincipal() {
		setTitle("Men\u00FA Principal");
		setResizable(false);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		try{
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
		}
		catch(Exception e) {  
		}
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		
		JButton btnGestionarPas = new JButton("Gestionar Pasajero");
		btnGestionarPas.setBounds(27, 87, 185, 23);
		btnGestionarPas.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				InterfazGestionarPasajero m = new InterfazGestionarPasajero();
				m.setVisible(true);
				dispose();
			}
		});
		
		JButton btnFacturar = new JButton("Facturar");
		btnFacturar.setBounds(27, 115, 185, 23);
		
		JButton btnCancelarReserva = new JButton("Cancelar Reserva");
		btnCancelarReserva.setBounds(27, 144, 185, 23);
		
		JButton btnIngresarPagos = new JButton("Ingresar Pagos");
		btnIngresarPagos.setBounds(27, 173, 185, 23);
		btnIngresarPagos.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		
		JButton btnGestionarListados = new JButton("Gestionar Listados");
		btnGestionarListados.setBounds(27, 202, 185, 23);
		
		JButton btnGestionarResposableDe = new JButton("Gestionar Resposable de Pago");
		btnGestionarResposableDe.setBounds(222, 87, 185, 23);
		
		JButton btnReservarHabitaciones = new JButton("Reservar Habitaciones");
		btnReservarHabitaciones.setBounds(222, 115, 185, 23);
		
		JButton btnOcuparHabitaciones = new JButton("Ocupar Habitaciones");
		btnOcuparHabitaciones.setBounds(222, 144, 185, 23);
		
		JButton btnEmitirNotaDe = new JButton("Emitir Nota de Cr\u00E9dito");
		btnEmitirNotaDe.setBounds(222, 173, 185, 23);
		
		JButton btnCerrarSesin = new JButton("Cerrar Sesi\u00F3n");
		btnCerrarSesin.setBounds(222, 202, 186, 23);
		contentPane.setLayout(null);
		contentPane.add(btnGestionarPas);
		contentPane.add(btnFacturar);
		contentPane.add(btnCancelarReserva);
		contentPane.add(btnIngresarPagos);
		contentPane.add(btnGestionarListados);
		contentPane.add(btnGestionarResposableDe);
		contentPane.add(btnReservarHabitaciones);
		contentPane.add(btnOcuparHabitaciones);
		contentPane.add(btnEmitirNotaDe);
		contentPane.add(btnCerrarSesin);
		
		JLabel lblMenPrincipal = new JLabel("Men\u00FA Principal");
		lblMenPrincipal.setHorizontalAlignment(SwingConstants.CENTER);
		lblMenPrincipal.setFont(new Font("Calibri", Font.BOLD, 18));
		lblMenPrincipal.setBounds(107, 30, 222, 30);
		contentPane.add(lblMenPrincipal);
	}

}
